using System.Collections.Generic;
using UnityEngine;

public class SaveLoadManager : MonoBehaviour
{
    private static SaveLoadManager instance;


    [SerializeField] private string _jsonFolder;

    [SerializeField] private readonly List<Isaveable> _saveableList = new();
    [SerializeField] private Dictionary<string, Isaveable> _saveableDic = new();

    public static SaveLoadManager Instance
    {
        get
        {
            if (instance == null) instance = new SaveLoadManager();
            return instance;
        }
    }

    private void Awake()
    {
        _jsonFolder = Application.persistentDataPath + "/SAVE/";
    }


    public void Register(Isaveable saveable)
    {
        _saveableList.Add(saveable);
    }
}